package com.lc.fbtp.draftmsg.api.electric.common;

import java.io.Serializable;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("MainBody")
public class MainBody implements Serializable{

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 2604365612763939745L;

	/**
	 * 报文标识
	 */
	@XStreamAlias("MsgId")
	private MsgId MsgId;
	
	/**
	 * 原报文标识
	 */
	@XStreamAlias("OrgnlMsgId")
	private OrgnlMsgId OrgnlMsgId;
	
	/**
	 * 票据信息
	 */
	@XStreamAlias("ComrclDrft")
	private ComrclDrft ComrclDrft;
	
	/**
	 * 票据类型
	 * @return
	 */
	public String getTp() {
		if(ComrclDrft!=null) {
			return ComrclDrft.getTp();
		}
		return null;
	}
	/**
	 * 票据金额
	 * @return
	 */
	public String getIsseAmt() {
		if(ComrclDrft!=null) {
			return ComrclDrft.getIsseAmt();
		}
		return null;
	}
	
	/**
	 * 出票日
	 * @return
	 */
	public String getIsseDt() {
		if(ComrclDrft!=null) {
			return ComrclDrft.getIsseDt();
		}
		return null;
	}
	/**
	 * 到期日
	 * @return
	 */
	public String getDueDt() {
		if(ComrclDrft!=null) {
			return ComrclDrft.getDueDt();
		}
		return null;
	}
	/**
	 * 不得转让标志
	 * @return
	 */
	public String getBanEndrsmtMk() {
		if(ComrclDrft!=null) {
			return ComrclDrft.getBanEndrsmtMk();
		}
		return null;
	}
	/**
	 * 备注
	 * @return
	 */
	public String getRmrk() {
		if(ComrclDrft!=null) {
			return ComrclDrft.getRmrk();
		}
		return null;
	}
	/**
	 * 电子票据号码
	 * @return
	 */
	public String getIdNb() {
		if(ComrclDrft!=null) {
			return ComrclDrft.getIdNb();
		}
		return null;
	}
	

	/**
	 * 获取id
	 * @return
	 */
	public String getId(){
		return MsgId.getId();
	}
	
	/**
	 * 获取报文时间 
	 * @return
	 */
	public String getDtTm(){
		return MsgId.getCreDtTm();
	}
	
	/**
	 * 获取原报文号
	 * @return
	 */
	public String getOrgnlId(){
		if(OrgnlMsgId != null){
			return OrgnlMsgId.getId();
		}
		return null;
	}
	/**
	 * 获取原报文时间
	 * @return
	 */
	public String getOrgnlCreDtTm(){
		if(OrgnlMsgId != null){
			return OrgnlMsgId.getCreDtTm();
		}
		return null;
	}

	public MsgId getMsgId() {
		return MsgId;
	}

	public void setMsgId(MsgId msgId) {
		MsgId = msgId;
	}

	public OrgnlMsgId getOrgnlMsgId() {
		return OrgnlMsgId;
	}

	public void setOrgnlMsgId(OrgnlMsgId orgnlMsgId) {
		OrgnlMsgId = orgnlMsgId;
	}

	public ComrclDrft getComrclDrft() {
		return ComrclDrft;
	}

	public void setComrclDrft(ComrclDrft comrclDrft) {
		ComrclDrft = comrclDrft;
	}
	
	
	
}
